#coding=utf-8
#数据库模块

#临时定义两个用户 reynold  melissa

u_reynold = {"userid":1,"username":"reynold"}
u_melissa = {"userid":2,"username":"melissa"}


def vertifyUser(user):
	
	if user.getUserName() == u_reynold["username"]:
		user.setId(u_reynold["userid"])
		return	True

	if user.getUserName() == u_melissa["username"]:
		user.setId(u_melissa["userid"])
		return	True 

	return False
